<?php
namespace app\index\controller;


class BaseController
{
    /**
     * $data : data you return.
     * $retCode: 0 means ok. others will be error code.
     */
    public function out($data, $retCode = 0)
    {
        $data['serverTime'] = time();
        trace("check out data:".json_encode($data), 'output');
        return json(array('data' =>$data, 'retCode' => $retCode, )); //$html;
    }


}